<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<?php 
$jUrl =$jUrl== ''?__URL__.'/index?tag_title='.rawurlencode(rawurldecode($_POST['tag_title'])).'&ss='.$_POST['s'].'&fid='.$_POST['fid']:$jUrl;
?>

<?php if ($way==null):?><meta http-equiv='Refresh' content='{$jUrl}'><?php endif;?>
<title>{$message}{$error}</title>
<link href="/css/admin.css" rel="stylesheet" type="text/css" />
<script src="/js/admin.js"></script>
<?php $waitSecond=$waitSecond==''?3:$waitSecond; if ($way=='close'){?>
<script>
//loadjs('admin/son');
setTimeout ( "close_win()", <?=$waitSecond?> * 1000);
function close_win(){
	if(confirm('是否关闭窗口 ?')){
		window.close();
	}
}

</script>
<?php }else if($way=='sub'){?>
<script src="/js/a.js"></script>
<script>
setTimeout ( "form_sub()", <?=$waitSecond?> * 1000);
function form_sub(){
	document.getElementById('form').submit();
}
</script>

<?php }?>
</head>

<body>
<div id="kk" class="p20">
<div class="ma w400 p30 pb20 k tc" style="margin-top:15%">
<div class="f14 b">{$message}{$error}</div>
<?php if ($text !=''):?><div class="mt20">{$text}</div><?php endif;?>
<div class="mt20">本页将在 {$waitSecond} 秒后
<?=$way==null ? '转向':'关闭';?>
</div>

<div class="mt20 tr">
<?php if ($way=='close'):?><input type="button" value="关闭" class="btn" onclick="javascript:close_win();" />
<?php elseif($way=='sub'): ?><input type="button" value="确定" class="btn" onclick="javascript:form_sub();" />
<?php else:?><input type="button" value="确定" class="btn" onclick="window.location.href='{$jUrl}'" />
<?php endif;?>
</div>

<div class="c"></div>
</div>
<form method="post" action="__URL__" id="form">
<div class="hide">
<?php foreach($_POST as $k=>$v):
	if($k == 'content') {continue;}?>
<input type="hidden" value="{$v}" name="{$k}" />
<?php endforeach;?>
</div>
</form>
</div kk>
<script>kk();</script>
</body>
</html>
